#include <stdio.h>
struct student
{
    char name[5];
    int id;
    short score;
};

void output_stu (struct student *p) {
    printf("sizeof(p) = %d \n", sizeof(p));
    printf("name\tID\tscore\n");
    printf("%s\t%d\t%d\n", p->name, p->id, p->score);

}
int main(int argc, char const *argv[])
{
    struct student stu = {"jack", 1, 100};
    printf("sizeof(stu) = %d \n", sizeof(stu));
    output_stu(&stu); // 16 个字节， 内存空间比较大，改为传递指针 32位占4字节
    return 0;
}
